﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeBehind="WapPost.aspx.cs" Inherits="WCrawler.Wap.WapPost" ValidateRequest="false"%>
<%@ Register assembly="AjaxControlToolkit" namespace="AjaxControlToolkit" tagprefix="ajaxToolkit" %>

<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
<asp:ScriptManager ID="ScriptManager1" runat="server">
    </asp:ScriptManager>

    <div class="input">
	<h1>Create wap post</h1>
	
	<span>Title</span>
	<asp:TextBox ID="txtTitle" class="textbox" runat="server" Width="300px"></asp:TextBox>
    <br />

    <span>Content</span><br />
    <asp:TextBox ID="txtContent" class="textarea" runat="server" Columns="65" Rows="10" 
        TextMode="MultiLine"></asp:TextBox><br />

	<span>Image</span>
	<asp:TextBox ID="txtImage" runat="server" Width="350px"></asp:TextBox>
    <asp:Button ID="btnAddImage" runat="server" Text="Add" 
            onclick="btnAddImage_Click" />
        <br />
        <asp:GridView ID="GridViewImages" runat="server" AutoGenerateColumns="False" 
            CellPadding="4" ForeColor="#333333" GridLines="None" 
            onrowdeleting="GridViewImages_RowDeleting">
            <AlternatingRowStyle BackColor="White" />
            <Columns>
                <asp:CommandField ShowDeleteButton="True" />
                <asp:TemplateField HeaderText="Image Urls" SortExpression="ImageUrl" ControlStyle-Width="500px">
                    <ItemTemplate>
                        <asp:HyperLink ID="hyperImageUrl" NavigateUrl='<%#Eval("Url")%>' runat="server"
                            Text='<%#Eval("Url")%>'></asp:HyperLink>
                    </ItemTemplate>
                </asp:TemplateField>
            </Columns>
            <EditRowStyle BackColor="#7C6F57" />
            <FooterStyle BackColor="#1C5E55" Font-Bold="True" ForeColor="White" />
            <HeaderStyle BackColor="#1C5E55" Font-Bold="True" ForeColor="White" />
            <PagerStyle BackColor="#666666" ForeColor="White" HorizontalAlign="Center" />
            <RowStyle BackColor="#E3EAEB" />
            <SelectedRowStyle BackColor="#C5BBAF" Font-Bold="True" ForeColor="#333333" />
            <SortedAscendingCellStyle BackColor="#F8FAFA" />
            <SortedAscendingHeaderStyle BackColor="#246B61" />
            <SortedDescendingCellStyle BackColor="#D4DFE1" />
            <SortedDescendingHeaderStyle BackColor="#15524A" />
        </asp:GridView>
    <br />

    <span>Download link</span><br />
    <span>Name</span>
    <asp:TextBox ID="txtLinkName" class="textbox" runat="server" Width="150px">Link tải về</asp:TextBox><br />
    <span>Link</span>
	<asp:TextBox ID="txtDownloadLink" class="textbox" runat="server" Width="300px"></asp:TextBox><br />
    <span>Size</span>
        <asp:DropDownList ID="DropDownListType" class="select" runat="server">
            <asp:ListItem>None</asp:ListItem>
            <asp:ListItem>176x220</asp:ListItem>
            <asp:ListItem>240x320</asp:ListItem>
            <asp:ListItem>320x240</asp:ListItem>
        </asp:DropDownList>
    <asp:Button ID="btnAddDownloadLink" runat="server" Text="Add" 
            onclick="btnAddDownloadLink_Click" />
        <br />
        <asp:GridView ID="GridViewDownloadLink" runat="server" 
            AutoGenerateColumns="False" CellPadding="4" ForeColor="#333333" 
            GridLines="None" onrowdeleting="GridViewDownloadLink_RowDeleting">
            <AlternatingRowStyle BackColor="White" />
            <Columns>
                <asp:CommandField ShowDeleteButton="True" />
                <asp:TemplateField HeaderText="Download Files" SortExpression="ForumUrl" ControlStyle-Width="500px">
                    <ItemTemplate>
                        <asp:HyperLink ID="hyperLinkUrl" NavigateUrl='<%#Eval("Url")%>' runat="server"
                            Text='<%#Eval("Name")%>'></asp:HyperLink>
                    </ItemTemplate>
                </asp:TemplateField>
            </Columns>
            <EditRowStyle BackColor="#7C6F57" />
            <FooterStyle BackColor="#1C5E55" Font-Bold="True" ForeColor="White" />
            <HeaderStyle BackColor="#1C5E55" Font-Bold="True" ForeColor="White" />
            <PagerStyle BackColor="#666666" ForeColor="White" HorizontalAlign="Center" />
            <RowStyle BackColor="#E3EAEB" />
            <SelectedRowStyle BackColor="#C5BBAF" Font-Bold="True" ForeColor="#333333" />
            <SortedAscendingCellStyle BackColor="#F8FAFA" />
            <SortedAscendingHeaderStyle BackColor="#246B61" />
            <SortedDescendingCellStyle BackColor="#D4DFE1" />
            <SortedDescendingHeaderStyle BackColor="#15524A" />
        </asp:GridView>
    <br />

	

    <asp:Button ID="btnViewSource" runat="server" Text="View Source" 
            onclick="btnAddContent_Click" />
</div>

<asp:UpdatePanel ID="ViewSourcePanel" runat="server">
    <ContentTemplate>
<span>View Source</span><br />
    <asp:TextBox ID="txtViewSource" runat="server" Rows="25" width="600px"
        TextMode="MultiLine"></asp:TextBox><br />
</ContentTemplate>
</asp:UpdatePanel>
</asp:Content>
